package com.controller;

import com.dao.ConfigFileDao;
import com.entity.ConfigEntity;
import com.entity.ConfigFileEntity;
import com.ex.MyException;
import com.service.ConfigFileService;
import com.service.ConfigService;
import top.appx.espring.annotation.Action;
import top.appx.espring.annotation.Autowired;
import top.appx.espring.annotation.Controller;

import javax.servlet.http.HttpServletRequest;
import java.io.FileOutputStream;


@Controller("/ConfigFile")
public class ConfigFileController extends BaseController<ConfigFileEntity> {

    @Autowired
    private ConfigFileService configFileService;

    @Action("queryPage")
    public Object queryPage(HttpServletRequest request){
        return configFileService.queryPage(requestQueryPageVO(request));
    }

    @Action("add")
    public void add(ConfigFileEntity configEntity){
        configFileService.add(configEntity);
    }
    @Action("modify")
    public void modify(ConfigFileEntity configEntity){
        configFileService.modify(configEntity);

    }
    @Action("delById")
    public void delById(ConfigEntity configEntity){
        configFileService.delById(configEntity.getId());
    }



}
